AM_CPPFLAGS = $(WX_CXXFLAGS) \
		-I$(top_srcdir)/src/include \
		$(GTK_CFLAGS) \
		-Iinclude \
		-I$(top_srcdir)/src/sdk/wxscintilla/include

pluginlibdir = $(pkglibdir)/plugins

pluginlib_LTLIBRARIES = libgitblocks.la

libgitblocks_la_LDFLAGS = @MODULE_SHARED_LDFLAGS@ -version-info 0:1:0 -no-undefined -avoid-version

libgitblocks_la_LIBADD = ../../sdk/libcodeblocks.la $(WX_LIBS)

libgitblocks_la_SOURCES = src/CloneDialog.cpp \
            src/CommitAllDialog.cpp \
            src/CommitDialog.cpp \
            src/GitBlocks.cpp \
            src/GTKLoginDialog.cpp \
            src/NewBranchDialog.cpp \
            src/RegisterDialog.cpp \
            src/RemoveDialog.cpp \
            src/RenameDialog.cpp \
            src/SubmoduleAdd.cpp \
            src/SwitchBranchDialog.cpp \
                src/UsernamePasswordDialog.cpp


noinst_HEADERS = include/CloneDialog.h \
            include/CommitAllDialog.h \
            include/CommitDialog.h \
            include/GitBlocks.h \
            include/GTKLoginDialog.h \
            include/NewBranchDialog.h \
            include/RegisterDialog.h \
            include/RemoveDialog.h \
            include/RenameDialog.h \
            include/SubmoduleAdd.h \
            include/SwitchBranchDialog.h \
                include/UsernamePasswordDialog.h

EXTRA_DIST = $(srcdir)/wxsmith/*.wxs \
            $(srcdir)/*.cbp \
            manifest.xml

pkgdata_DATA = gitblocks.zip
CLEANFILES = $(pkgdata_DATA)

gitblocks.zip: manifest.xml
	PWD=`pwd` cd $(srcdir) && zip $(PWD)/gitblocks.zip manifest.xml > /dev/null

